/**
  * Created by Joshua Conero(O'Uymas) on 2017/1/14 0014.
  * QQ: 957376074
  * E-mail: Brximl@163.com
  */
package conero.sql
import java.sql.{DriverManager, ResultSet}
class Factory(driver:String,dsn:String,username:String,pswd:String) {
  //  数据库类型
  var dbType = ""   // mysql/pgsql/orcl/sqlite
//  driver:String,dsn:String,username:String,pswd:String
  Class.forName(driver)
  val con = DriverManager.getConnection(dsn,username,pswd)
  val db = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY)
}
